package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dto.SensitiveDto;
import com.heima.model.admin.pojo.AdSensitive;
import com.heima.model.common.dto.PageResponseResult;
import com.heima.model.common.dto.ResponseResult;

/**
 * @author Ronaldo
 * @date 2021/7/30
 */
public interface AdSensitiveService extends IService<AdSensitive> {

    /**
     * 敏感词列表分页查询
     * @param sensitiveDto 分页参数及查询条件
     * @return ResponseResult
     */
    PageResponseResult queryPage(SensitiveDto sensitiveDto);

    /**
     * 新增敏感词信息
     * @param adSensitive 敏感词对象
     * @return ResponseResult
     */
    ResponseResult insertSensitive(AdSensitive adSensitive);

    /**
     * 修改敏感词信息
     * @param adSensitive 修改参数
     * @return ResponseResult
     */
    ResponseResult updateSensitive(AdSensitive adSensitive);

    /**
     * 根据id删除敏感词
     * @param id id
     * @return ResponseResult
     */
    ResponseResult deleteById(Integer id);
}
